package cn.juque.lucenecandy.core.enums;

import cn.juque.common.constants.BaseMessageEnum;

/**
 * @author juque
 * @version 1.0.0
 * <ul>
 *     <li>luceneCandyMsgEnum</li>
 * </ul>
 * @date 2023-12-27
 **/
public enum LuceneCandyMsgEnum implements BaseMessageEnum {

    /**
     * enum
     */
    SIGNATURE_CHECK_FAIL("LC-10001", "签名校验失败"),

    DOC_VERSION_CONFLICT("LC-10002", "文档版本号冲突"),

    DOC_UPDATE_MISSING("LC-10003", "提交文档更新操作缺失新版本文档"),
    ;

    private final String code;

    private final String msg;

    LuceneCandyMsgEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    /**
     * 消息码
     *
     * @return String
     */
    @Override
    public String getCode() {
        return this.code;
    }

    /**
     * 消息报文
     *
     * @return String
     */
    @Override
    public String getMsg() {
        return this.msg;
    }
}
